package com.campus.wall.presenter;

import android.app.Activity;

import com.campus.wall.base.BasePresenter;
import com.campus.wall.contract.FriendsContract;
import com.campus.wall.contract.LeaveMessageContract;
import com.campus.wall.response.MessageResponse;

import java.util.ArrayList;
import java.util.List;

public class FriendsPresenter extends BasePresenter<FriendsContract.View> implements FriendsContract.Presenter{

    private Activity activity;
    private List<MessageResponse> list=new ArrayList<>();
    public FriendsPresenter(Activity activity) {
        this.activity=activity;
    }





    public List<MessageResponse> initeMess(){
        for (int i=0;i<3;i++){
            MessageResponse messageResponse=new MessageResponse();
            messageResponse.setMessage("静以修生，俭以养德，非淡泊无以明志，非宁静无以致远");
            if(i%2==0){
                messageResponse.setName("胡歌");
                messageResponse.setImage(":mipmap/boy");
            }else {
                messageResponse.setName("刘亦菲");
                messageResponse.setImage(":mipmap/girl");
            }
            list.add(messageResponse);
        }
        return list;
    }
}
